package org.ala.tiktools.generator.mybatis.config.info;

import java.util.Map;

/**
 * @author ala
 * @date 2024-12-30 13:40
 */
public class DBMS {
    protected String jdbc;
    protected String url;
    protected String username;
    protected String password;

    public static DBMS build(Map<String, Object> kvs) {
        DBMS dbms = new DBMS();
        dbms.setJdbc(kvs.get("jdbc").toString());
        dbms.setUrl(kvs.get("url").toString());
        dbms.setUsername(kvs.get("username").toString());
        dbms.setPassword(kvs.get("password").toString());
        return dbms;
    }

    public String getJdbc() {
        return jdbc;
    }
    public void setJdbc(String jdbc) {
        this.jdbc = jdbc;
    }
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
